package com.sc.common.exception;

import com.sc.common.response.Response;
import lombok.Getter;

import java.io.Serial;

@Getter
public class MessageTipException extends RuntimeException{
    @Serial
    private static final long serialVersionUID = 1L;

    private final int code;

    public MessageTipException(String message) {
        this(message, Response.FAIL);
    }

    public MessageTipException(String message, int code) {
        super(message);
        this.code = code;
    }

}
